#!/usr/bin/bash

REDIS_HOST='10.8.1.15:7011,10.8.1.16:7012,10.8.1.17:7013'
SCHEDULER_IMAGE='harbor.cloudcontrolsystems.cn/workflow/scheduler:latest'
LOG_LEVEL='DEBUG'
SCHEDULER_CPU_CORE_COUNT='1'
SCHEDULER_MEM_SIZE='3072'
KEEP_ALIVE_CYCLE='10'
SCHEDULER_BALANCE_STRATEGY='RADICAL'
SCHEDULER_START_TIMEOUT_CYCLE='30'
MAX_SCHEDULER='-1'
BALANCE_METHOD='abs'

docker run -d --name controller -p 6060:6060 -p 6061:6061 -e REDIS_HOST=$REDIS_HOST -e SCHEDULER_IMAGE=$SCHEDULER_IMAGE -e LOG_LEVEL=$LOG_LEVEL -e SCHEDULER_CPU_CORE_COUNT=$SCHEDULER_CPU_CORE_COUNT -e SCHEDULER_MEM_SIZE=$SCHEDULER_MEM_SIZE -e KEEP_ALIVE_CYCLE=$KEEP_ALIVE_CYCLE -e SCHEDULER_BALANCE_STRATEGY=$SCHEDULER_BALANCE_STRATEGY -e SCHEDULER_START_TIMEOUT_CYCLE=$SCHEDULER_START_TIMEOUT_CYCLE -e MAX_SCHEDULER=$MAX_SCHEDULER -e BALANCE_METHOD=$BALANCE_METHOD harbor.cloudcontrolsystems.cn/workflow/controller:latest
